import Axios from "axios"

export default class SendWaay {
    static sendwaay = null

    static getInstance() {
        if (this.sendwaay == null) {
            this.sendwaay = new SendWaay()
        }
        return this.sendwaay
    }
    //查询全部
    list(send){
        return Axios.get("http://localhost/sendwaay",{params :send})
    }
    //根据Id查询
    listByid(id){
        return Axios.get(`http://localhost/sendwaay/${id}`)
    }
    //添加员工
    save(send){
        return Axios.post("http://localhost/sendwaay/add",send)
    }
    //修改
    update(send){
        return Axios.put("http://localhost/sendwaay/update",send)
    }
    //删除
    remove(id){
        return Axios.delete(`http://localhost/sendwaay/${id}`)
    }
}